﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace miniQQ_Template.Commands
{
    internal class EnableGroup : CommandBase
    {
        internal override string CommandString => "enabledGroup";

        internal override string Description => "获取允许的 QQ 群";

        internal override void Execute(string RobotQQ, int MsgType, string MsgFrom, string TigFrom, string Msg)
        {
            if(MsgType == (int)(MsgTypes.MsgType.群))
            {
                Api.ApiSendMsg(RobotQQ, MsgType, MsgFrom, MsgFrom,JsonConvert.SerializeObject(Models.Manager.Config.EnabledGroups), 3996);
            }
        }
    }
}
